package main

import (
	"fmt"

	"github.com/garyburd/redigo/redis"
)

func main() {
	//链接redis
	redis, err := redis.Dial("tcp", "127.0.0.1:6379")
	if err != nil {
		fmt.Println("链接redis失败", err)
		return
	}

	defer redis.Close()
	fmt.Println("链接redis成功")
}
